package com.pets.service;

import com.pets.entity.Admin;
import com.pets.util.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author
 */
public interface AdminLoginService {
    /**
     * 管理员人脸登录
     * @param request
     * @return
     */
    Admin adminFaceLogin(HttpServletRequest request);

    /**
     * 管理员人脸录入
     * @param request
     * @param adminId
     * @return
     */
    Boolean adminFaceEntry(HttpServletRequest request, String adminId);

    Admin getAdminById(int adminId);

    /**
     * 管理员账号密码登录
     * @param admin
     * @return
     */
    Admin doLogin(Admin admin);
}
